package com.zhu.esyblog.service;

import com.zhu.esyblog.pojo.Comment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhu.esyblog.pojo.RespBean;
import com.zhu.esyblog.vo.CommentParam;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author stx
 * @since 2022-06-22
 */
public interface ICommentService extends IService<Comment> {
    /**
     * 根据文章id评论
     * @param id
     * @return
     */
    RespBean commentsByArticleId(Long id);

    /**
     * 评论文章
     * @param commentParam
     * @return
     */
    RespBean comment(CommentParam commentParam);
}
